#pragma once

#include "item.h"

class CSpike : public CItem
{
private:
	float fDamage;
	float fSlowDuration;
	float fSlowAmount;
	float fTimer;
	bool bCanAttack;
	
public:
	float GetDamage() const { return fDamage; }
	float GetSlowDuration() const { return fSlowDuration; }
	float GetSlowAmount() const { return fSlowAmount; }
	float GetTimer() const { return fTimer; }
	bool GetCanAttack() const { return bCanAttack; }
	
	void SetDamage(float val) { fDamage = val; }
	void SetSlowDuration(float val) { fSlowDuration = val; }
	void SetSlowAmount(float val) { fSlowAmount = val; }
	void SetTimer(float val) { fTimer = val; }
	void SetCanAttack(bool val) { bCanAttack = val; }

	virtual void Update(float fElapsedTime) override;
	virtual void Render() override;

	virtual void HandleCollision(const IEntity* pOther) override;
};

